﻿@model KPIS.GERP.Models.FIM.MasBankAccount

@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
    @Html.HiddenFor(model => model.BankAccId)
}

@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)

<div class="widget-box">
    <div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลบัญชีธนาคาร</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
            <div class="widget-main">
                <div class="control-group">
                    <div class="controls-field-from-group" id="GroupWh" style="width: 1300px;">
                        <div class="controls-field-from-left" style="float: left; width: 400px;">
                            <div class="control-label">
                                ประเภทบัญชีเงินฝาก :
                            </div>
                            <div class="controls">
                              @Html.DropDownListFor(m => m.BankAccTypeId , new KPIS.GERP.WEB.GFMS.MasBankAccountService.MasBankAccountServiceClient().SelectListBankType(null))
                              @Html.ValidationMessageFor(model => model.BankAccTypeId)
                            </div>
                        </div>
                    </div>

                    <div class="controls-field-from-group" id="GroupDes" style="width: 1300px;">
                        <div class="controls-field-from-left" style="float: left; width: 400px;">
                            <div class="control-label">
                                เลขที่บัญชีเงินฝาก :
                            </div>
                            <div class="controls">
                                @Html.TextBoxFor(m => m.BankAccNo)
                                @Html.ValidationMessageFor(model => model.BankAccNo)
                            </div>

                        </div>
                    </div>
                    <div class="clear" style="clear: both; width: 0px; height: 0px;"></div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                         แหล่งเงิน :
                    </div>
                    <div class="controls">
                        @Html.DropDownListFor(m => m.BgmSourceId, new KPIS.GERP.WEB.GFMS.MasBudgetSourceService.MasBudgetSourceServiceClient().SelectList(null))
                        @Html.ValidationMessageFor(model => model.BgmSourceId)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                         สำหรับเขตพื้นที่ :
                    </div>
                    <div class="controls">
                        @Html.DropDownListFor(m => m.WorkAreaId , new KPIS.GERP.WEB.GFMS.MasBankAccountService.MasBankAccountServiceClient().SelectListWorkArea(null), new { disabled = "disabled" })
                        @Html.ValidationMessageFor(model => model.WorkAreaId)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        ชื่อบัญชีเงินฝาก :
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        ชื่อบัญชีเงินฝาก (EN) :
                    </div>
                    <div class="controls">
                        @Html.EditorFor(model => model.NameEng)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        ธนาคาร :
                    </div>
                    <div class="controls">
                        @Html.DropDownList("BankId", new KPIS.GERP.WEB.GFMS.MasBankService.MasBankServiceClient().SelectListBank(null), new { id = "BankId" })
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        สาขา :
                    </div>
                    <div class="controls">
                        @Html.DropDownListFor(m => m.BranchId, new KPIS.GERP.WEB.GFMS.MasBankService.MasBankServiceClient().SelectListBankBranch(null), new { id = "BranchId"})
                        @Html.ValidationMessageFor(model => model.BranchId)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        หมายเหตุ :
                    </div>
                    <div class="controls">
                        @Html.TextAreaFor(model => model.Remarks, new { style = "width:620px; height: 90px;" })
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
